public class Undergraduate extends Student{
    private String degree;
    Undergraduate(String name, int age, String degree){
        super(name,age);
        this.degree=degree;

    }

    @Override
    public void show() { System.out.println("Undergrduate{"+degree+'\''+')');}
}
